<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="org.corey.share.db.service.AuthServiceImpl"%>
<%@page import="org.corey.share.db.entity.User"%>
<%
	String root = request.getContextPath();
%>
<div id="header_top">
	<div id="header_nav">
		<div id="header_nav_left">
			<ul style="">
				<li>
					<img src="<%=root%>/images/home_icon.gif" height="15px" style="" />
					<a href="<%=root%>/index.html">首页</a>
				</li>
				<li>
					<img src="<%=root%>/images/book_icon.gif" height="15px" style="" />
					<a href="#">博客</a>
				</li>
				<li>
					<img src="<%=root%>/images/photo_icon.gif" height="15px" style="" />
					<a href="#">相册</a>
				</li>
			</ul>
		</div>
		<div id="header_nav_right">
			<ul>
				 <%
					if(!AuthServiceImpl.getInstance().isLogin()){
				 %>	
				 	<li>
						<img src="<%=root%>/images/login_icon.gif" height="15px" style="" />
						<a href="<%=root%>/user/auth.action">登陆</a>
					</li>	
				 <%
				 }else{
				 	User logonUser=AuthServiceImpl.getInstance().getUser();
				 %>	
				 	<li>
						欢迎您<a href="<%=root%>/user/adminSpace.action" style="color:RED"><%=logonUser.getUserName()%></a>
					</li>	
					<li>
						<img src="<%=root%>/images/layout_icon.gif" height="15px" style="" />
						<a href="<%=root%>/user/layout.action">登出</a>
					</li>
				 <%
				 }
				 %>
				<li>
					<img src="<%=root%>/images/contact_icon.gif" height="15px" style="" />
					<a href="#">联系我</a>
				</li>
			</ul>
		</div>
	</div>
</div>
